<div class="container-fluid">
    <h3 style="color:#8C525B;border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">客户信息</h3>
    <div class="panel panel-default">
        <div class="panel-heading">
            <p class="panel-title" style="height:35px;line-height:35px">
            客户信息列表
                <a href="c_action.php?action=add_form" class="btn btn-info pull-right">添加</a>
            </p>
        </div>
        <div class="panel-body">
            <table class="c_list_table table table-bordered">
                <tr>
                    <th>姓名</th>
                    <th>状态</th>
                    <th>来源</th>
                    <th>所属员工</th>
                    <th>类型</th>
                    <th>性别</th>
                    <th>手机</th>
                    <th>QQ</th>
                    <th>邮箱</th>
                    <th>职位</th>
                    <th>公司</th>
                    <th>备注</th>
                    <th>基本操作</th>
                </tr>
                <?php if(isset($rows)):?>
                <?php foreach($rows as $v):?>
                    <tr>
                    <td><?php echo $v['c_name']?></td>
                    <td><?php echo $v['cstat_stat']?></td>
                    <td><?php echo $v['csource_info']?></td>
                    <td><?php echo $v['e_name']?></td>
                    <td><?php echo $v['ctype_info']?></td>
                    <td><?php echo $v['c_sex']?></td>
                    <td><?php echo $v['c_tel']?></td>
                    <td><?php echo $v['c_qq']?></td>
                    <td><?php echo $v['c_email']?></td>
                    <td><?php echo $v['c_post']?></td>
                    <td><?php echo $v['c_company']?></td>
                    <td><?php echo $v['c_comment']?></td>
                    <td>
                    <a href="c_action.php?action=update&c_id=<?php echo $v['c_id']?>"><span class="glyphicon glyphicon-edit"></span>编辑</a>|
                    <a href="c_action.php?action=delete&c_id=<?php echo $v['c_id']?>"><span class="glyphicon glyphicon-trash"></span>删除</a>
                    </td>
                    </tr>
                <?php endforeach;?>
            <?php endif;?>
            </table>
            <div>
                <span class="pull-left">共有<?php echo $rowNum;?>条记录，当前第<?php echo $page;?>/<?php echo $maxPage;?>页</span>
                <ul class="pagination pull-right">
                    <li><a href="c_action.php?action=list&page=1">首页</a></li>
                    <li><a href="c_action.php?action=list&page=<?php echo  ($page!=1)?$page-1:1;?>">上一页</a></li>
                    <li><a href="c_action.php?action=list&page=<?php echo  ($page!=$maxPage)?$page+1:$maxPage;?>">下一页</a></li>
                    <li><a href="c_action.php?action=list&page=<?php echo $maxPage?>">尾页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
